﻿using System.Reflection;
using Autofac;
using Microsoft.Extensions.DependencyInjection;
using ZilLion.Service.Core.Ioc;
using ZilLion.Service.Core.CRMUnities.Config;
using ZilLion.Service.WeChatCardProxy.Domain;
using ZilLion.Service.Core.ConfigManager.Manager;

namespace ZilLion.Service.WeChatCardProxy.Controllers
{
    public class ComponentLoader : ComponentLoaderBase, IComponentLoader
    {
        public override void Register(ContainerBuilder builder)
        {
            base.Register(builder);
            RegisterAssemblis(Assembly.Load("ZilLion.Service.WeChatCardProxy.Domain"));
            ConfigurationManager.SetAppSettings("Appid", ZilLionConfigurationManager.GetConfigInstance<WeChatCardProxyConfig>().Appid);
        }

        
    }
}